<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="language" content="en" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
 
    <!-- blueprint CSS framework -->
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
    <!--[if lt IE 8]>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
    <![endif]-->
     
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/votehome-w.css" />

    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-1.7.2.min.js"></script> 
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/highcharts.js"></script> 

    <script type="text/javascript">
    $(function () {
        var colorx = Highcharts.getOptions().colors;
        $('#content').highcharts({
            chart: {
                type: 'column'
            },
            title: {
                text: '曲江新区2013第二届导游讲解员大赛网络投票结果统计'
            },
            
            xAxis: {
                categories: [<?php foreach ($user as $v) { echo "'".$v."',";} ?>],
                
            },
            yAxis: {
                min: 0,
                title: {
                    text: '投票数',
                    align: 'high'
                },
                labels: {
                    overflow: 'justify'
                }
            },
            tooltip: {
                valueSuffix: '票'
            },
            plotOptions: {
                bar: {
                    dataLabels: {
                        enabled: true
                    }
                }
            },
            
            credits: {
                enabled: false
            },
            series: [{
                name: '得票',
                // data: [<?php foreach ($polls as $v) { echo $v.",";} ?>],

                data: [<?php $ix=0; foreach ($polls as $v) { 
                    $ix++;
                    if($ix>9)$ix=0;
                    echo "{color: colorx[".$ix."], y:".$v."},";
                } ?>],
                dataLabels: {
                    enabled: true,
                    rotation: 0,
                    color: '#000',
                    align: 'right',
                    x: 6,
                    y: 0,
                    style: {
                        fontSize: '13px',
                        fontFamily: 'Verdana, sans-serif',
                        textShadow: '0 0 1px black'
                    }
                }
            }]
        });
    });
    

    </script>

    <title><?php echo CHtml::encode($this->pageTitle); ?></title>     
</head>

<body>

<div class="container" id="page">
    
    <a href="/" id="headurl">
        <div id="header"> 
        </div><!-- header --> 
    </a>
<div id="mainmenu">
 </div> 
    
    <div id="content" style="width: 100%; height: 500px; margin: 0 auto"></div>

    <div class="clear"></div>
  <!--   <div id="showCaptcha"></div> -->

    <div id="footer">
        主办单位： 曲江新区管理委员会<Br>
        协办单位： 西安曲江文化旅游股份有限公司<br>
        技术支持： 西安有道软件技术有限公司<br><br>
        <img src="images/logo.png" border=0 id="footimg">       
        <br><br>
        <script type="text/javascript">
            function getVoide(objName){
                var arrStr = document.cookie.split(";"); 
                for(var i = 0;i < arrStr.length;i ++){ 
                    var temp = arrStr[i].split("="); 
                    if(temp[0] == objName) return unescape(temp[1]);  
               } 
               return ""; 
            }
            var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
            document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F202fabbe66a9248b12d2feb9e9e9c61b' type='text/javascript'%3E%3C/script%3E")); 
            if(getVoide("vote2013")==""){
                var exp = new Date();
                exp.setTime(exp.getTime() + 30*24*60*60*1000);  
                document.cookie ="vote2013="+ escape ("vote2013_"+new Date().getTime()) + ";expires=" + exp.toGMTString();
            } 
        </script> 
    </div><!-- footer -->

</div><!-- page -->
    
    
</body>
</html>


 
